#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
    char s[100]=" I   like ,,,..    C++ programming!";
    int i=0;
    while(s[i]!='\0')
    {
        if(s[i]!=' '&&s[i]!=','&&s[i]!='.'&&s[i]!='?'&&s[i]!='!')
        {
            if(s[i-1]==' '&&i>0)
            {
                cout<<'\n';
            }
            cout<<s[i];
        }
        i++;
    }
    return 0;
}
